package com.xxgc.eow.service;

import com.xxgc.eow.entity.Collecttopic;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 收藏题目表 服务类
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-24
 */
public interface ICollecttopicService extends IService<Collecttopic> {

    List<Collecttopic> getCollectTopicsByUserId(Integer userId);

    Integer addCollectTopic(Integer userId,Integer topicId);

    Integer removeCollectTopic(Integer userId,Integer topicId);

    List<Collecttopic> getCollectTopicsLimit(Integer pageNum,Integer pageSize);

    Integer getCount();
}
